package com.myHospital.biz.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.myHospital.biz.AppointmentBiz;
import com.myHospital.dao.AppointmentDao;
import com.myHospital.entity.Appointment;
@Service("appointmentBiz")
public class AppointmentBizImpl implements AppointmentBiz {

	@Autowired
	private AppointmentDao appointmentDao;
	
	public void addAppoint(Appointment appointment) {
		appointmentDao.addAppoint(appointment);
	}

	public List<Appointment> getAll() {
		return appointmentDao.getAll();
	}

}
